home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Environments / MacCjr / MacC Jr / Library Folder / C Include Folder / Packages.h < prev    next >
Encoding:
Text File  |  1987-01-06  |  3.9 KB  |  150 lines  |  [TEXT/EDIT]

  1. // packages.h
  2. // © Copyright 1984 Consulair Corp, All Rights Reserved.
  3. // Portions © Copyright Apple Computer, Inc: 1982, 1983, 1984
  4. //            Stanford University, SUMEX project: 1984
  5. // Requires Macdefs.h
  6.  
  7. #ifndef PackagesLoaded
  8.  
  9.   #ifndef MacdefsLoaded
  10.     #include "macdefs.h"
  11.     #endif
  12.   
  13.   #define PackagesLoaded
  14.  
  15. // Package IDs
  16.  
  17.  #define dskInit   2      /* Disk Initialization */
  18.  #define stdFile   3      /* Standard File */
  19.  #define flPoint   4      /* Floating-Point Arithmetic */
  20.  #define trFunc    5      /* Transcendental Functions */
  21.  #define intUtil   6    /* International Utilities */
  22.  #define bdConv    7    /* Binary/Decimal Conversion */
  23.       
  24. // constants for Standard File package
  25.  
  26.   #define putDlgID -3999 /* SFPutFile dialog template ID */
  27.   #define getDlgID -4000 /* SFGetFile dialog template ID */
  28.   #define putSave   1    /* save button */
  29.   #define putCancel 2    /* cancel button */
  30.   #define putEject  5    /* eject button */
  31.   #define putDrive  6    /* drive button */
  32.   #define putName   7    /* editTExt item for file name */
  33.   
  34.   #define getOpen   1    /* open button */
  35.   #define getCancel 3    /* cancel button */
  36.   #define getEject  5    /* eject button */
  37.   #define getDrive  6    /* drive button */
  38.   #define getNmList 7    /* userItem for file name list */
  39.   #define getScroll 8    /* userItem for scroll bar */
  40.         
  41. // constants for manipulation of international resources
  42. // mask for currency format flags
  43. // constant specifies the bit# as used in BitTst
  44.   
  45.   #define currLeadingZ  128    /* set if leading zero */
  46.   #define currTrailingZ  64    /* set if trailing zero */
  47.   #define currNegSym     32    /* set if minus sign,  */ 
  48.                   /*    reset if brackets for neg num */
  49.   #define currSymTrail   16    /* set if currency symbol trails, */
  50.                   /*    reset if leads */
  51.     
  52. // short date form
  53. // constant specifies absolute value of byte
  54.   
  55.   #define DMY  2        /* day,month,year */
  56.   #define YMD  1        /* year,month,day */
  57.   #define MDY  0        /* month,day,year */
  58.         
  59. // date element format flags
  60. // constant specifies the bit# as used in BitTst
  61.   
  62.   #define mntLeadingZ  128    /* set if leading 0 for month */
  63.   #define dayLeadingZ   64    /* set if leading zero for day */
  64.   #define century    32    /* set if century, reset if no century */
  65.     
  66. // time element format flags
  67. // constant specifies the bit# as used in BitTst
  68.   
  69.   #define hrLeadingZ   128    /* set if leading zero for hours */
  70.   #define minLeadingZ    64    /* set if leading zero for minutes */
  71.   #define secLeadingZ   32    /* set if leading zero for seconds */
  72.   #define shortDate       0    /* long flag specifying short date format */
  73.   #define longDate     256    /* long flag specifying long date format */
  74.   #define medDate      512    /* long flag specifying medium date format */
  75.   #define abbrevDate   512    /* constant for IUDateString() abbrev format */
  76.               
  77. // Standard File
  78.  
  79.    typedef struct {
  80.      char    good;  
  81.      char    copy;
  82.      OSType  ftype;
  83.      short   vRefNum; 
  84.      short   version;
  85.      char    fName; 
  86.      char    Name[63]; 
  87.    } SFReply;
  88.   
  89.   struct __ST
  90.     {
  91.     long    ftype[4];
  92.     short    junk;
  93.     };
  94.   
  95.   #define SFTypeList struct __ST
  96.   
  97.   
  98.   // interface for international resources
  99.   
  100.   struct _IR0
  101.     {
  102.     char    decimalPt;
  103.     char    thousSep;
  104.     char    listSep;
  105.     char    currSym1;
  106.     char    currSym2;
  107.     char    currSym3;
  108.     char    currFmt;
  109.     char    shortDateF;
  110.     char    dateFmt;
  111.     char    dateSep;
  112.     char    timeCycle;
  113.     char    timeFmt;
  114.     char    mornStr[4];
  115.     char    eveStr[4];
  116.     char    timeSep;
  117.     char    timeSuff[8];
  118.     char    metricSys;
  119.     short    intl0Vers;
  120.     };
  121.   
  122.   #define intl0Rec struct _IR0
  123.   
  124.   struct _IR1
  125.     {
  126.     char    days[7][16];    //  strings for Sun - Sat 
  127.     char    months[12][16];
  128.     char    suppressDay;
  129.     char    dateFmt;
  130.     char    dayLeading0;
  131.     char    monLen;
  132.     char    st[5][4];
  133.     short    intl1Vers;
  134.     ProcPtr    excepRtn;
  135.     };
  136.   
  137.   #define intl1Rec struct _IR1
  138.  
  139. //  Functions returning other than integer 
  140.  
  141.   #define GetString (Handle)GetString
  142.   #define NewString (Handle)NewString
  143.   
  144. #endif
  145.  
  146.  
  147.  
  148.  
  149.  
  150.